using System.Web;
using Zor_Modes;

namespace Zor_Tools
{
    public class RequestSession
    {
        private static string SESSION_USER = "SESSION_USER";

        public static void AddSessionUser(Sys_Users user)
        {
            HttpContext rq = HttpContext.Current;
            rq.Session[RequestSession.SESSION_USER] = user;
        }

        public static Sys_Users GetSessionUser()
        {
            HttpContext rq = HttpContext.Current;
            return (Sys_Users)rq.Session[RequestSession.SESSION_USER];
        }
    }
}